package io.renren.modules.jxgk.dao;

import io.renren.modules.jxgk.entity.TeacherCourseContentEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface TeacherCourseContentDao extends BaseDao<TeacherCourseContentEntity>{
    TeacherCourseContentEntity queryCourseObject(String class_course_id);


    List<TeacherCourseContentEntity> queryCourseList(@Param("query") Map<String, Object> map,
                                               @Param("course_teacher_id")String course_teacher_id);


    int queryCourseTotal(@Param("query") Map<String, Object> map, @Param("course_teacher_id")String courseTeacherId);
    double queryProcedure(@Param("course_teacher_id")String courseTeacherId, @Param("courseName")String courseName);
    int updateAll(TeacherCourseContentEntity teacherCourseContentEntity);
    List<String> queryCourseName(String course_teacher_id);

}
